package com.itheima.BufferedStream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedStrDemo2 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw1 = new BufferedWriter(new FileWriter("day623-24CharStream\\xx.txt",true));

        String line="谁知盘中餐，粒粒皆辛苦。";
        bw1.write(System.lineSeparator());
        bw1.write(line,0,6);
        bw1.write(System.lineSeparator());
        bw1.write(line,6,6);

        bw1.close();


    }
}
